<?php
/**
 * 功能.
 * User: Yoby logove@qq.com
 * Date: 2019/5/22 16:50
 * wechat: logove
 */
include "AES.class.php";

$aes = new AES(256);//默认192,支持128,256

$data = 'a=1&b=2&c=3';
$secret = '123';

$encrypted = $aes->encrypt($data, $secret);

var_dump('en:'.$encrypted);

$decrypted = $aes->decrypt($encrypted, $secret);

var_dump("de:".$decrypted);